package se.thoka.twt.client.widgets;

import se.thoka.twt.client.form.HasTWTFormFieldInfo;

import com.google.gwt.user.client.ui.PasswordTextBox;
import com.google.gwt.user.client.ui.TextBox;

public class TWTPasswordBox extends TWTTextBox {

	public TWTPasswordBox() {
		this(generateId());
	}
	public TWTPasswordBox(String id) {
		this(id, null);
	}
	public TWTPasswordBox(HasTWTFormFieldInfo info) {
		this(info.name(), info.label());
	}
	public TWTPasswordBox(String id, String label) {
		super(id, label);
	}
	
	@Override
	protected TextBox createTextBox() {
		return new PasswordTextBox();
	}
}
